package com.kexun.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.kexun.entity.DO.Department;

import java.util.List;

public interface DepartmentService extends IService<Department> {


    //当前登录用户的部门只能添加属于当前部门或者子部门的数据

    PageInfo<Department> findDeptList(String dpName, int page, int limit);

    //根据部门id获取当前部门以及子部门的数据
    List<Department> findDeptById(int depId);

    List<Department> findAllDepList();

    void addDepartment(Department department);

    void deleteById(int id);

    Department findDepartmentById(int id);

    void editDepartment(Department department);

    void delDSbyDS(int shopId, int depId);
}
